#include <iostream>
#include <cstdio>
#include <string>

using namespace std;

int main()
{
    freopen("SEQGAME.INP", "w", stdout);

    int n = 1000;
    cout << n << endl;
    for (int i = 0; i < n; i++) cout << rand()%100000 - 50 << " ";
    cout << endl;
    for (int i = 0; i < n; i++) cout << rand()%100000 - 50 << " ";
    return 0;    
}
